//
//  SWListLayer.h
//  BeautyGuessFree
//
//  Created by Charles How on 12-4-11.
//  Copyright 2012年 hust. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"

#import <UIKit/UIView.h>
#import <UIKit/UIKitDefines.h>


#import "AdViewController.h"

#import "SWList.h"

#define OFFSET_SCREEN_TOP   (0)  ///与屏幕顶部的间距

#define MAX_ROWS   (2)   //最多显示的行数
#define MAX_COLS   (3)   //最多显示的列数
#define MAX_COUNT_PER_PAGE  (MAX_ROWS*MAX_COLS)


enum SPR_TAG {
    SPR_TAG_PIC_START = 10000,
    SPR_TAG_LAB_START = 20000
    };



enum SWListLayer_ENUM {
    SWListLayer_ENUM_TAG_MENU = 1,
    SWListLayer_ENUM_TAG_BACK
    };


@interface SWListLayer : CCLayer<AdViewControllerDelegate>
{
	CCMenuItem	*disabledItem;
	
	NSMutableArray * menuItemArray;
	
	CCMenuItem *back;
	CCMenu *menu;
    
	UIActivityIndicatorView * activityIndicatorView;
    
    
    AdViewController	*adController;
    
    int mPageIndex;         //当前页index
    int mPageCount;         //总页数
}

@property (nonatomic,retain) AdViewController	*adController;

@property (nonatomic,readwrite) int mPageIndex;
@property (nonatomic,readwrite) int mPageCount;

-(UIImage*) scaleAndRotateImage:(UIImage*)photoimage
                         xScale:(CGFloat)bounds_width
                         yScale:(CGFloat)bounds_height;

-(UIImage *)resizeImage:(UIImage *)image andScaleX:(float)scaleX andScaleY:(float)scaleY;

@end




/*
 字体是我们在iPhone开发中经常需要用到的。但是iPhone里面到底内置了哪些字体呢？下面就是一个常用的列表。
 
 
 
 Family name: AppleGothic
 Font name: AppleGothic
 Family name: Hiragino Kaku Gothic ProN
 Font name: HiraKakuProN-W6
 Font name: HiraKakuProN-W3
 Family name: Arial Unicode MS
 Font name: ArialUnicodeMS
 Family name: Heiti K
 Font name: STHeitiK-Medium
 Font name: STHeitiK-Light
 Family name: DB LCD Temp
 Font name: DBLCDTempBlack
 Family name: Helvetica
 Font name: Helvetica-Oblique
 Font name: Helvetica-BoldOblique
 Font name: Helvetica
 Font name: Helvetica-Bold
 Family name: Marker Felt
 Font name: MarkerFelt-Thin
 Family name: Times New Roman
 Font name: TimesNewRomanPSMT
 Font name: TimesNewRomanPS-BoldMT
 Font name: TimesNewRomanPS-BoldItalicMT
 Font name: TimesNewRomanPS-ItalicMT
 Family name: Verdana
 Font name: Verdana-Bold
 Font name: Verdana-BoldItalic
 Font name: Verdana
 Font name: Verdana-Italic
 Family name: Georgia
 Font name: Georgia-Bold
 Font name: Georgia
 Font name: Georgia-BoldItalic
 Font name: Georgia-Italic
 Family name: Arial Rounded MT Bold
 Font name: ArialRoundedMTBold
 Family name: Trebuchet MS
 Font name: TrebuchetMS-Italic
 Font name: TrebuchetMS
 Font name: Trebuchet-BoldItalic
 Font name: TrebuchetMS-Bold
 Family name: Heiti TC
 Font name: STHeitiTC-Light
 Font name: STHeitiTC-Medium
 Family name: Geeza Pro
 Font name: GeezaPro-Bold
 Font name: GeezaPro
 Family name: Courier
 Font name: Courier
 Font name: Courier-BoldOblique
 Font name: Courier-Oblique
 Font name: Courier-Bold
 Family name: Arial
 Font name: ArialMT
 Font name: Arial-BoldMT
 Font name: Arial-BoldItalicMT
 Font name: Arial-ItalicMT
 Family name: Heiti J
 Font name: STHeitiJ-Medium
 Font name: STHeitiJ-Light
 Family name: Arial Hebrew
 Font name: ArialHebrew
 Font name: ArialHebrew-Bold
 Family name: Courier New
 Font name: CourierNewPS-BoldMT
 Font name: CourierNewPS-ItalicMT
 Font name: CourierNewPS-BoldItalicMT
 Font name: CourierNewPSMT
 Family name: Zapfino
 Font name: Zapfino
 Family name: American Typewriter
 Font name: AmericanTypewriter
 Font name: AmericanTypewriter-Bold
 Family name: Heiti SC
 Font name: STHeitiSC-Medium
 Font name: STHeitiSC-Light
 Family name: Helvetica Neue
 Font name: HelveticaNeue
 Font name: HelveticaNeue-Bold
 Family name: Thonburi
 Font name: Thonburi-Bold
 Font name: Thonburi
 */
